﻿using MediatR;
using WeatherHistory.Shared.Validation;

namespace WeatherHistory.Api.CommandsQueries.Queries.Weathers.Search;

public class SearchWeathersQueryRequest : PageSettings, IRequest<SearchWeathersQueryResponse>
{
    public DateTime? StartDateTime { get; set; }
    public DateTime? EndDateTime { get; set; }

    [GreaterThan(0L)]
    public long? RegionId { get; set; }

    [WeatherCondition(true)]
    public string? WeatherCondition { get; set; }
}